home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / morphtargets / morph_box_bezier.s3d next >
Text File  |  2000-07-11  |  8KB  |  258 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     translation 0.7116 0 -2.74
  10.     children [
  11.         DEF Box01Morpher ChannelDeformer {
  12.             basePoint [
  13.                 -7.5 0 7.5 7.5 0 7.5 -7.5 0 -7.5 7.5 0 -7.5 -7.5 15 7.5 7.5 15 7.5 -7.5 15 -7.5 7.5 15 -7.5
  14.             ]
  15.             channels [
  16.                 DEF MC_Box02 TranslationArrayDefChannel {
  17.                     translations [
  18.                         -0.001485 0 0.04939 0.003114 0 0.1362 -0.003965 0 -0.05176 0.001309 0 0.02035 0.04653 0 -0.03761
  19.                         -0.04342 0 -0.0354 0.03076 0 0.02761 -0.05096 0 0.05537
  20.                     ]
  21.                 }
  22.                 DEF MC_Box03 TranslationArrayDefChannel {
  23.                     modifiedCoordIndex [
  24.                         1 3 4 5 6 7
  25.                     ]
  26.                     translations [
  27.                         0.09258 0 0.001797 0.09347 0 -0.02449 0.03182 0 -0.03496 -0.02062 0 -0.03744 0.05117 0 -0.04628
  28.                         -0.01814 0 -0.05426
  29.                     ]
  30.                 }
  31.             ]
  32.         }
  33.         DEF MC_Box02-BEZSCALAR-INTERP BezierScalarInterpolator {
  34.             key [
  35.                 0 0.18 0.37 0.58 0.85
  36.             ]
  37.             keyValue [
  38.                 0 46.65 71.32 74 
  39.                 74 76.83 7.383 9 
  40.                 9 10.84 94.28 100 
  41.                 100 107.4 74.02 0
  42.             ]
  43.         }
  44.         ROUTE world-TIMER.fraction_changed TO MC_Box02-BEZSCALAR-INTERP.set_fraction
  45.         ROUTE MC_Box02-BEZSCALAR-INTERP.value_changed TO MC_Box02.set_weight
  46.         DEF MC_Box03-BEZSCALAR-INTERP BezierScalarInterpolator {
  47.             key [
  48.                 0 0.18 0.37 0.58
  49.             ]
  50.             keyValue [
  51.                 0 41.76 71.09 88 88 105.8 112.2 100 100 86.49 53.15 0
  52.             ]
  53.         }
  54.         ROUTE world-TIMER.fraction_changed TO MC_Box03-BEZSCALAR-INTERP.set_fraction
  55.         ROUTE MC_Box03-BEZSCALAR-INTERP.value_changed TO MC_Box03.set_weight
  56.         Shape {
  57.             appearance [
  58.                 MultiAppearance {
  59.                     material Material {
  60.                         diffuseColor 0.102 0.6941 0.3451
  61.                     }
  62.                 }
  63.             ]
  64.             geometry MultiMesh {
  65.                 coord DEF Box01-COORD Coordinate {
  66.                     point [
  67.                         -7.5 0 7.5 7.5 0 7.5 -7.5 0 -7.5 7.5 0 -7.5 -7.5 15 7.5 7.5 15 7.5 -7.5 15 -7.5 7.5 15 -7.5
  68.                     ]
  69.                 }
  70.                 coordIndex [
  71.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  72.                     2 0 4 -1 4 6 2 -1
  73.                 ]
  74.                 smoothingIndex [
  75.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  76.                 ]
  77.                 appearanceIndex [
  78.                     1 1 0 0 4 4 3 3 5 5 2 2
  79.                 ]
  80.                 textureMappings [
  81.                 ]
  82.             }
  83.         }
  84.         ROUTE Box01Morpher.outPoint TO Box01-COORD.set_point
  85.     ]
  86. }
  87. DEF Box02 Transform {
  88.     translation -31.25 0 -3.231
  89.     children [
  90.         Shape {
  91.             appearance [
  92.                 MultiAppearance {
  93.                     material Material {
  94.                         diffuseColor 0.102 0.6941 0.3451
  95.                     }
  96.                 }
  97.             ]
  98.             geometry MultiMesh {
  99.                 coord DEF Box02-COORD Coordinate {
  100.                     point [
  101.                         -7.648 0 12.44 7.811 0 21.12 -7.896 0 -12.68 7.631 0 -5.465 -2.847 15 3.739 3.158 15 3.96
  102.                         -4.424 15 -4.739 2.404 15 -1.963
  103.                     ]
  104.                 }
  105.                 coordIndex [
  106.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  107.                     2 0 4 -1 4 6 2 -1
  108.                 ]
  109.                 smoothingIndex [
  110.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  111.                 ]
  112.                 appearanceIndex [
  113.                     1 1 0 0 4 4 3 3 5 5 2 2
  114.                 ]
  115.                 textureMappings [
  116.                 ]
  117.             }
  118.         }
  119.     ]
  120. }
  121. DEF Box03 Transform {
  122.     translation 27.5 0 -2.74
  123.     children [
  124.         Shape {
  125.             appearance [
  126.                 MultiAppearance {
  127.                     material Material {
  128.                         diffuseColor 0.102 0.6941 0.3451
  129.                     }
  130.                 }
  131.             ]
  132.             geometry MultiMesh {
  133.                 coord DEF Box03-COORD Coordinate {
  134.                     point [
  135.                         -7.5 0 7.5 16.76 0 7.68 -7.5 0 -7.5 16.85 0 -9.949 -4.318 15 4.004 5.438 15 3.756
  136.                         -2.383 15 -12.13 5.686 15 -12.93
  137.                     ]
  138.                 }
  139.                 coordIndex [
  140.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  141.                     2 0 4 -1 4 6 2 -1
  142.                 ]
  143.                 smoothingIndex [
  144.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  145.                 ]
  146.                 appearanceIndex [
  147.                     1 1 0 0 4 4 3 3 5 5 2 2
  148.                 ]
  149.                 textureMappings [
  150.                 ]
  151.             }
  152.         }
  153.     ]
  154. }
  155. DEF Camera01 Viewpoint{
  156.     position 0 51.28 112.2
  157.     orientation 1 0 0 -0.3589
  158.     fieldOfView 0.6024
  159.     description "Camera01"
  160. }
  161. DEF Camera01.Target Transform {
  162.     translation 0 7.929 -3.334
  163.     children [
  164.     ]
  165. }
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. DEF SampledBox01 Transform {
  174.     translation 0.7116 0 -2.74
  175.     children [
  176.         DEF SampledBox01Morpher ChannelDeformer {
  177.             basePoint [
  178.                 -7.5 0 7.5 7.5 0 7.5 -7.5 0 -7.5 7.5 0 -7.5 -7.5 15 7.5 7.5 15 7.5 -7.5 15 -7.5 7.5 15 -7.5
  179.             ]
  180.             channels [
  181.                 DEF MC_SampledBox02 TranslationArrayDefChannel {
  182.                     translations [
  183.                         -0.001485 0 0.04939 0.003114 0 0.1362 -0.003965 0 -0.05176 0.001309 0 0.02035 0.04653 0 -0.03761
  184.                         -0.04342 0 -0.0354 0.03076 0 0.02761 -0.05096 0 0.05537
  185.                     ]
  186.                 }
  187.                 DEF MC_SampledBox03 TranslationArrayDefChannel {
  188.                     modifiedCoordIndex [
  189.                         1 3 4 5 6 7
  190.                     ]
  191.                     translations [
  192.                         0.09258 0 0.001797 0.09347 0 -0.02449 0.03182 0 -0.03496 -0.02062 0 -0.03744 0.05117 0 -0.04628
  193.                         -0.01814 0 -0.05426
  194.                     ]
  195.                 }
  196.             ]
  197.         }
  198.         DEF MC_SampledBox02-SCALAR-INTERP ScalarInterpolator {
  199.             key [
  200.                 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14 0.15 0.16 0.17
  201.                 0.18 0.19 0.2 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.3 0.31 0.32 0.33 0.34
  202.                 0.35 0.36 0.37 0.38 0.39 0.4 0.41 0.42 0.43 0.44 0.45 0.46 0.47 0.48 0.49 0.5 0.51
  203.                 0.52 0.53 0.54 0.55 0.56 0.57 0.58 0.59 0.6 0.61 0.62 0.63 0.64 0.65 0.66 0.67 0.68
  204.                 0.69 0.7 0.71 0.72 0.73 0.74 0.75 0.76 0.77 0.78 0.79 0.8 0.81 0.82 0.83 0.84 0.85
  205.                 0.86 0.87 0.88 0.89 0.9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1
  206.             ]
  207.             keyValue [
  208.                 0 7.572 14.74 21.49 27.84 33.79 39.32 44.45 49.17 53.49 57.4 60.9 63.99 66.68 68.96
  209.                 70.83 72.29 73.35 74 73.87 72.66 70.5 67.51 63.82 59.56 54.85 49.82 44.59 39.29 34.03
  210.                 28.96 24.19 19.86 16.07 12.97 10.67 9.308 9 9.8 11.61 14.32 17.83 22.04 26.84 32.14
  211.                 37.82 43.79 49.93 56.16 62.36 68.43 74.27 79.78 84.85 89.37 93.25 96.39 98.67 100
  212.                 100.6 101 100.9 100.6 99.9 98.88 97.52 95.82 93.79 91.43 88.73 85.69 82.33 78.62 74.58
  213.                 70.21 65.5 60.46 55.08 49.37 43.32 36.94 30.22 23.17 15.78 8.057 0 0 0 0 0 0 0 0 0
  214.                 0 0 0 0 0 0 0
  215.             ]
  216.         }
  217.         ROUTE world-TIMER.fraction_changed TO MC_SampledBox02-SCALAR-INTERP.set_fraction
  218.         ROUTE MC_SampledBox02-SCALAR-INTERP.value_changed TO MC_SampledBox02.set_weight
  219.         DEF MC_SampledBox03-SCALAR-INTERP ScalarInterpolator {
  220.             key [
  221.                 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14 0.15 0.16 0.17
  222.                 0.18 0.19 0.2 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.3 0.31 0.32 0.33 0.34
  223.                 0.35 0.36 0.37 0.38 0.39 0.4 0.41 0.42 0.43 0.44 0.45 0.46 0.47 0.48 0.49 0.5 0.51
  224.                 0.52 0.53 0.54 0.55 0.56 0.57 0.58 0.59 0.6 0.61 0.62 0.63 0.64 0.65 0.66 0.67 0.68
  225.                 0.69 0.7 0.71 0.72 0.73 0.74 0.75 0.76 0.77 0.78 0.79 0.8 0.81 0.82 0.83 0.84 0.85
  226.                 0.86 0.87 0.88 0.89 0.9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1
  227.             ]
  228.             keyValue [
  229.                 0 6.845 13.46 19.84 26 31.92 37.62 43.08 48.32 53.32 58.09 62.64 66.95 71.03 74.89
  230.                 78.51 81.9 85.07 88 90.72 93.25 95.57 97.68 99.58 101.3 102.7 103.9 104.9 105.6 106.1
  231.                 106.3 106.2 105.9 105.3 104.4 103.3 101.8 100 97.93 95.6 93 90.12 86.98 83.56 79.88
  232.                 75.93 71.71 67.21 62.45 57.42 52.12 46.55 40.71 34.6 28.22 21.57 14.65 7.459 0 0 0
  233.                 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  234.             ]
  235.         }
  236.         ROUTE world-TIMER.fraction_changed TO MC_SampledBox03-SCALAR-INTERP.set_fraction
  237.         ROUTE MC_SampledBox03-SCALAR-INTERP.value_changed TO MC_SampledBox03.set_weight
  238.         Shape {
  239.             appearance Appearance {
  240.                 material Material {
  241.                     emissiveColor 1 0 0
  242.                 }
  243.             }
  244.             geometry IndexedLineSet {
  245.                 coord DEF SampledBox01-COORD Coordinate {
  246.                     point [
  247.                         -7.5 0 7.5 7.5 0 7.5 -7.5 0 -7.5 7.5 0 -7.5 -7.5 15 7.5 7.5 15 7.5 -7.5 15 -7.5 7.5 15 -7.5
  248.                     ]
  249.                 }
  250.                 coordIndex [
  251.                     0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  252.                     2 0 4 -2 4 6 2 -2
  253.                 ]
  254.             }
  255.         }
  256.         ROUTE SampledBox01Morpher.outPoint TO SampledBox01-COORD.set_point
  257.     ]
  258. }